.class Lcom/example/m6wmr/IntegralParticularActivity$3;
.super Ljava/lang/Object;
.source "IntegralParticularActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/IntegralParticularActivity;->gethttpData()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/IntegralParticularActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/IntegralParticularActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/IntegralParticularActivity$3;->this$0:Lcom/example/m6wmr/IntegralParticularActivity;

    .line 501
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 10

    .prologue
    .line 505
    iget-object v7, p0, Lcom/example/m6wmr/IntegralParticularActivity$3;->this$0:Lcom/example/m6wmr/IntegralParticularActivity;

    const-string v8, "userInfo"

    const/4 v9, 0x0

    invoke-virtual {v7, v8, v9}, Lcom/example/m6wmr/IntegralParticularActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v3

    .line 506
    .local v3, "sharedPreferences":Landroid/content/SharedPreferences;
    const-string v7, "uid"

    const-string v8, ""

    invoke-interface {v3, v7, v8}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 507
    .local v5, "uid":Ljava/lang/String;
    const-string v7, "pass"

    const-string v8, ""

    invoke-interface {v3, v7, v8}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 509
    .local v2, "pwd":Ljava/lang/String;
    new-instance v7, Ljava/lang/StringBuilder;

    iget-object v8, p0, Lcom/example/m6wmr/IntegralParticularActivity$3;->this$0:Lcom/example/m6wmr/IntegralParticularActivity;

    # getter for: Lcom/example/m6wmr/IntegralParticularActivity;->m:Lmyapp/MyApp;
    invoke-static {v8}, Lcom/example/m6wmr/IntegralParticularActivity;->access$11(Lcom/example/m6wmr/IntegralParticularActivity;)Lmyapp/MyApp;

    move-result-object v8

    invoke-virtual {v8}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v8, "/index.php?ctrl=app&source=1&action=collectshop&datatype=json&uid="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "&pwd="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 511
    .local v6, "url":Ljava/lang/String;
    iget-object v7, p0, Lcom/example/m6wmr/IntegralParticularActivity$3;->this$0:Lcom/example/m6wmr/IntegralParticularActivity;

    # getter for: Lcom/example/m6wmr/IntegralParticularActivity;->m:Lmyapp/MyApp;
    invoke-static {v7}, Lcom/example/m6wmr/IntegralParticularActivity;->access$11(Lcom/example/m6wmr/IntegralParticularActivity;)Lmyapp/MyApp;

    move-result-object v7

    invoke-static {v6, v7}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v4

    .line 515
    .local v4, "str":Ljava/lang/String;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v4}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 518
    .local v1, "jsonObject":Lorg/json/JSONObject;
    const-string v7, "msg"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string v8, "nologin"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_0

    .line 520
    iget-object v7, p0, Lcom/example/m6wmr/IntegralParticularActivity$3;->this$0:Lcom/example/m6wmr/IntegralParticularActivity;

    # getter for: Lcom/example/m6wmr/IntegralParticularActivity;->h:Landroid/os/Handler;
    invoke-static {v7}, Lcom/example/m6wmr/IntegralParticularActivity;->access$24(Lcom/example/m6wmr/IntegralParticularActivity;)Landroid/os/Handler;

    move-result-object v7

    const/16 v8, 0xa

    invoke-virtual {v7, v8}, Landroid/os/Handler;->sendEmptyMessage(I)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 535
    .end local v1    # "jsonObject":Lorg/json/JSONObject;
    :cond_0
    :goto_0
    return-void

    .line 526
    :catch_0
    move-exception v0

    .line 528
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
